﻿using System;

namespace WcfExample
{
    class ConsoleMain
    {
        static void Main(string[] args)
        {
            using (var wcf = new WcfExample())
            {
                string input = "";
                do
                {
                    Console.Write("Echo something over WCF!  (blank to exit) ");
                    input = Console.ReadLine();
                    var ret = wcf.Invoke(input);
                    Console.WriteLine(ret);
                }
                while (input.Trim().Length > 0);
            }
        }
    }
}